package com.guli.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.edu.entity.Course;
import com.guli.edu.entity.form.CourseForm;
import com.guli.edu.entity.fuzzy.CourseLike;
import com.guli.edu.entity.fuzzy.CourseLikeFront;
import com.guli.edu.entity.vo.CoursePublishVo;
import com.guli.edu.entity.vo.CourseWebVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author ZhaoZhenyu
 * @since 2022-09-26
 */
public interface CourseService extends IService<Course> {
    String saveCourse(CourseForm courseForm);
    void getCourseByLikePage(Page<Course> pageParam, Integer size, CourseLike courseLike);
    CourseForm getCourseFormById(String id);
    boolean updateCourseFormById(String id, CourseForm courseForm);
    CoursePublishVo getCoursePublishVoById(String id);
    void publishCourseById(String id);
    List<Course> getHotCourse();
    Map<String, Object> getCourseByPageLikeOfFront(Page<Course> pageParam, CourseLikeFront courseLikeFront);
    CourseWebVo getInfoWebById(String courseId);
    void updatePageViewCount(String id);
}
